/// 通知模型
class NotificationModel {
  late String postName;
  late dynamic key;

  /// 根据key标记是谁加入的通知，一般直接传widget就好
  late Function(dynamic value) notification;

  /// 简单写一个构造方法
  NotificationModel.fromList(List list) {
    postName = list.first;
    key = list[1];
    notification = list.last;
  }
}